import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 巡检管理
  // {
  //   path: '/deviceManage',
  //   component: Layout,
  //   hidden: true,
  //   alwaysShow: true,
  //   name: 'deviceManage',
  //   meta: {
  //     title: '设备管理',
  //     icon: 'iconfont icon-xunjianguanli',
  //     roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
  //   },
  //   children: [
  //     {
  //       path: 'device',
  //       name: 'device',
  //       meta: { title: '设备管理', icon: 'iconfont icon-xunjianguanli' },
  //       component: () => import('@/views/basicSetting/device.vue')
  //     },
  //     {
  //       path: 'gateway',
  //       name: 'gateway',
  //       meta: { title: '网关管理', icon: 'iconfont icon-xunjianguanli' },
  //       component: () => import('@/views/basicSetting/gateway.vue')
  //     }
  //   ]
  // },
  {
    path: '/MQTT',
    component: Layout,
    hidden: false,
    name: 'MQTT',
    meta: {
      title: 'MQTT设备',
      icon: 'iconfont icon-xunjianguanli',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'index',
        name: 'MQTTDevice',
        meta: { title: 'MQTT设备', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/device/MQTTHost.vue')
      }
    ]
  }
  // {
  //   path: '/deviceLedger',
  //   component: Layout,
  //   hidden: false,
  //   name: 'deviceLedger',
  //   meta: {
  //     title: '设备台账',
  //     icon: 'iconfont icon-shebei1',
  //     roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
  //   },
  //   children: [
  //     {
  //       path: 'index',
  //       name: 'deviceLedgerIndex',
  //       meta: { title: '设备台账', icon: 'iconfont icon-shebei1', roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT'] },
  //       component: () => import('@/views/deviceLedger/index.vue')
  //     }
  //   ]
  // }
]
